<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旋转木马</title>
    <style>
        body{
            /* 设置透视 */
            perspective: 100px;
        }
        section {
            width: 300px;
            height: 200px;
            margin: 150px auto;
            position: relative;
            
        }

        section div {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-image: url(../image1/dog.png);
            background-repeat: no-repeat;
        }
        section div:nth-child(1){
            transform: translateZ(400px);

        }
    </style>
</head>

<body>
    <section>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </section>

</body>

</html>